package com.ruoyi.car.service.parts.impl;

import java.util.List;

import com.car.pojo.TbPartMotorModel;
import com.ruoyi.car.mapper.parts.TbPartMotorModelMapper;
import com.ruoyi.car.service.parts.ITbPartMotorModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

@Service
public class TbPartMotorModelServiceImpl implements ITbPartMotorModelService
{
    @Autowired
    private TbPartMotorModelMapper tbPartMotorModelMapper;

    @Override
    public TbPartMotorModel selectTbPartMotorModelById(Long motorModelId)
    {
        return tbPartMotorModelMapper.selectTbPartMotorModelById(motorModelId);
    }

    @Override
    public List<TbPartMotorModel> selectTbPartMotorModelList(TbPartMotorModel tbPartMotorModel)
    {
        return tbPartMotorModelMapper.selectTbPartMotorModelList(tbPartMotorModel);
    }


    @Override
    public int insertTbPartMotorModel(TbPartMotorModel tbPartMotorModel)
    {
        return tbPartMotorModelMapper.insertTbPartMotorModel(tbPartMotorModel);
    }

    @Override
    public int updateTbPartMotorModel(TbPartMotorModel tbPartMotorModel)
    {
        return tbPartMotorModelMapper.updateTbPartMotorModel(tbPartMotorModel);
    }


    @Override
    public int deleteTbPartMotorModelByIds(String ids)
    {
        return tbPartMotorModelMapper.deleteTbPartMotorModelByIds(Convert.toStrArray(ids));
    }


    @Override
    public int deleteTbPartMotorModelById(Long motorModelId)
    {
        return tbPartMotorModelMapper.deleteTbPartMotorModelById(motorModelId);
    }
}
